package net.lahuobao.enums.mall.admin;

/**
 * Created by Clark on 2016/9/25.
 */
public enum EMallSubsidySource {
    Platform {
        public int getValue() {
            return 0;
        }
        public String getName() {
            return "平台补贴";
        }
    },
    Shop {
        public int getValue() {
            return 1;
        }

        public String getName() {
            return "商户补贴";
        }
    };

    public static String valueOf(int value) {
        switch (value) {
            case 0:
                return EMallSubsidySource.Platform.getName();
            case 1:
                return EMallSubsidySource.Shop.getName();
        }
        return null;
    }

    public static EMallSubsidySource getMallSubsidySource(int value) {
        switch (value) {
            case 0:
                return EMallSubsidySource.Platform;
            case 1:
                return EMallSubsidySource.Shop;
        }
        return null;
    }
    public abstract int getValue();

    public abstract String getName();
}
